package gamagora.game.world.maps.game
{
	import gamagora.game.entity.*;
	import gamagora.game.world.maps.OSMap;

	public class OSMap15 extends OSMap
	{
		public function OSMap15()
		{
			super();

			var ground:OSGround = new OSGround(420, 1060, 200, 20, 0, false);
			ground.setNoErosionDown([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]);
			ground.erode();
			addBackground(ground);

			add(new OSMovingBox(0, 660));

			ground = new OSGround(0, 740, 280, 60, 0, false);
			ground.setNoErosionLeft([0, 14, 28]);
			ground.setNoErosionRight([27, 41]);
			ground.erode();
			add(ground);

			ground = new OSGround(0, 1040, 960, 40, 0, false);
			ground.setNoErosionUp([19, 20, 21, 22, 23, 24]);
			ground.setNoErosionDown([48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95]);
			ground.setNoErosionLeft([0, 48]);
			ground.setNoErosionRight([47, 95]);
			ground.erode();
			add(ground);

			add(new OSMovingBox(80, 660));

			ground = new OSGround(150, 560, 200, 20, 0, true);
			ground.setBorders(true, true);
			add(ground);
			
			var pillar:OSEntity = new OSEntity(NOTHING, 180, 580); // +30 +20
			pillar.makeGraphic(10, 200, 0xff000000);
			addBackground(pillar);
			
			pillar = new OSEntity(NOTHING, 300, 580); // +150 + 20
			pillar.makeGraphic(10, 200, 0xff000000);
			addBackground(pillar);


			/*
			ground = new OSGround(240, 620, 200, 20, 45, false);
			ground.setBorders(true, true);
			addForeground(ground);
			*/
			
			add(new OSMovingBox(160, 660));

			ground = new OSGround(280, 760, 260, 20, 0, false);
			ground.setNoErosionUp([4, 5, 6, 7, 8, 9, 10, 11]);
			ground.setNoErosionDown([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]);
			ground.setNoErosionLeft([0]);
			ground.erode();
			add(ground);

			ground = new OSGround(280, 780, 40, 20, 0, false);
			ground.setNoErosionUp([0, 1]);
			ground.setNoErosionLeft([0]);
			ground.setNoErosionRight([1]);
			ground.erode();
			add(ground);

			ground = new OSGround(320, 220, 200, 240, 0, false);
			ground.setNoErosionDown([110, 111, 112, 113, 114, 115, 116, 117, 118, 119]);
			ground.setNoErosionRight([29, 39, 49, 59, 69, 79, 89, 99, 109, 119]);
			ground.erode();
			add(ground);

			ground = new OSGround(320, 460, 240, 20, 0, false);
			ground.setNoErosionUp([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]);
			ground.setNoErosionDown([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]);
			ground.erode();
			add(ground);

			ground = new OSGround(320, 780, 240, 40, 0, false);
			ground.setNoErosionUp([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]);
			ground.setNoErosionDown([13, 14, 15, 16, 17, 18, 19, 20, 21, 22]);
			ground.setNoErosionLeft([0]);
			ground.erode();
			add(ground);

			ground = new OSGround(340, 480, 200, 20, 0, false);
			ground.setNoErosionUp([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]);
			ground.setNoErosionDown([1, 2, 3, 4, 5, 6, 7, 8]);
			ground.erode();
			add(ground);

			ground = new OSGround(340, 820, 200, 20, 0, false);
			ground.setNoErosionUp([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]);
			ground.setNoErosionDown([1, 2, 3, 4, 5, 6, 7, 8]);
			ground.erode();
			add(ground);

			ground = new OSGround(360, 500, 160, 20, 0, false);
			ground.setNoErosionUp([0, 1, 2, 3, 4, 5, 6, 7]);
			ground.setNoErosionDown([1, 2, 3, 4, 5, 6]);
			ground.erode();
			add(ground);

			ground = new OSGround(360, 740, 160, 20, 0, false);
			ground.setNoErosionUp([1, 2, 3, 4, 5, 6]);
			ground.setNoErosionDown([0, 1, 2, 3, 4, 5, 6, 7]);
			ground.erode();
			add(ground);

			ground = new OSGround(360, 840, 160, 20, 0, false);
			ground.setNoErosionUp([0, 1, 2, 3, 4, 5, 6, 7]);
			ground.setNoErosionDown([1, 2, 3, 4, 5, 6]);
			ground.erode();
			add(ground);

			ground = new OSGround(380, 520, 120, 220, 0, false);
			ground.setNoErosionUp([0, 1, 2, 3, 4, 5]);
			ground.setNoErosionDown([60, 61, 62, 63, 64, 65]);
			ground.erode();
			add(ground);

			ground = new OSGround(380, 860, 120, 180, 0, false);
			ground.setNoErosionUp([0, 1, 2, 3, 4, 5]);
			ground.setNoErosionDown([48, 49, 50, 51, 52, 53]);
			ground.erode();
			add(ground);

			ground = new OSGround(520, 260, 60, 200, 0, false);
			ground.setNoErosionDown([27, 28]);
			ground.setNoErosionLeft([0, 3, 6, 9, 12, 15, 18, 21, 24, 27]);
			ground.setNoErosionRight([11, 14, 17, 20, 23, 26, 29]);
			ground.erode();
			add(ground);

			ground = new OSGround(580, 320, 120, 140, 0, false);
			ground.setNoErosionLeft([0, 6, 12, 18, 24, 30, 36]);
			ground.setNoErosionRight([11, 17, 23, 29, 35, 41]);
			ground.erode();
			add(ground);

			add(new OSCage(700, 336, false));

			ground = new OSGround(700, 400, 260, 60, 0, false);
			ground.setNoErosionUp([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]);
			ground.setNoErosionLeft([0, 13, 26]);
			ground.setNoErosionRight([12, 25, 38]);
			ground.erode();
			add(ground);

		}
	}
}
